package com.mioto.ld.module.device.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mioto.ld.module.knowledge.model.KnowledgeBaseAppVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * @author mioto-qinxj
 * @date 2024/6/8
 * @desc
 */
@Getter
@Setter
@ApiModel("手机端设备告警分页显示对象")
public class DeviceAlertLogAppPagerVO {

    @ApiModelProperty("产品名称")
    private String productName;
    @ApiModelProperty("设备id")
    private String deviceId;
    @ApiModelProperty("设备序列号")
    private String sn;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("告警时间")
    private Date alertDate;
    @ApiModelProperty("告警恢复状态 0-未恢复 1-已恢复")
    private Integer status;
    @ApiModelProperty("告警名称")
    private String alertName;
    @ApiModelProperty("告警级别名称")
    private String levelName;
    @ApiModelProperty("告警触发条件")
    private String triggerCondition;
    @ApiModelProperty("在线状态 0-离线 1-在线")
    private int onlineStatus;
    @ApiModelProperty("关联知识库")
    private List<KnowledgeBaseAppVO> knowledgeBaseAppVOS;
}
